package model

import "time"

type SysNotice struct {
	Id             int       `json:"id,string" gorm:"primarykey"`
	Title          string    `json:"title" gorm:"标题"`
	Content        string    `json:"content" gorm:"内容"`
	Type           *int8     `json:"type" gorm:"类型（字典 1通知 2公告）"`
	PublicUserId   int       `json:"publicUserId,string" gorm:"发布人id"`
	PublicUserName string    `json:"publicUserName" gorm:"发布人姓名"`
	PublicOrgId    int       `json:"publicOrgId,string" gorm:"发布机构id"`
	PublicOrgName  string    `json:"publicOrgName" gorm:"发布机构名称"`
	PublicTime     time.Time `json:"publicTime" gorm:"发布时间"`
	CancelTime     time.Time `json:"cancelTime" gorm:"撤回时间"`
	Status         *int8     `json:"status" gorm:"状态（字典 0草稿 1发布 2撤回 3删除）"`
	CreateTime     time.Time `json:"createTime" gorm:"comment:创建时间"`
	CreateUser     int       `json:"createUser,string" gorm:"comment:创建人"`
	UpdateTime     time.Time `json:"updateTime" gorm:"comment:更新时间"`
	UpdateUser     int       `json:"updateUser,string" gorm:"comment:更新人"`
}
